package com.chuangfeng.building.entity;

import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * TMsMenuInfo entity.
 * 
 * @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "t_ms_menu_info")
public class TMsMenuInfo implements java.io.Serializable {

	// Fields

	private Integer msMenuId;
	private String menuName;
	private Integer orderBy;
	private Integer parent;
	private String uri;
	private Integer isDisplay;
	private Date createTime;
	private String creator;
	private Integer status;
	private String description;
	private String imgPath;

	// Constructors

	

	/** default constructor */
	public TMsMenuInfo() {
	}
	
	
	public TMsMenuInfo(Integer msMenuId, String menuName) {
		this.msMenuId = msMenuId;
		this.menuName = menuName;
	}
	
	public TMsMenuInfo(Integer msMenuId, String menuName,Integer parent) {
		this.msMenuId = msMenuId;
		this.menuName = menuName;
		this.parent = parent;
	}


	/** full constructor */
	public TMsMenuInfo(String menuName, Integer orderBy, Integer parent,
			String uri, Integer isDisplay, Date createTime, String creator,
			Integer status, String imgPath,String description) {
		this.menuName = menuName;
		this.orderBy = orderBy;
		this.parent = parent;
		this.uri = uri;
		this.isDisplay = isDisplay;
		this.createTime = createTime;
		this.creator = creator;
		this.status = status;
		this.imgPath = imgPath;
		this.description = description;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "msMenuId", unique = true, nullable = false)
	public Integer getMsMenuId() {
		return this.msMenuId;
	}

	public void setMsMenuId(Integer msMenuId) {
		this.msMenuId = msMenuId;
	}

	@Column(name = "menuName", length = 60)
	public String getMenuName() {
		return this.menuName;
	}

	public void setMenuName(String menuName) {
		this.menuName = menuName;
	}

	@Column(name = "orderBy")
	public Integer getOrderBy() {
		return this.orderBy;
	}

	public void setOrderBy(Integer orderBy) {
		this.orderBy = orderBy;
	}

	@Column(name = "parent")
	public Integer getParent() {
		return this.parent;
	}

	public void setParent(Integer parent) {
		this.parent = parent;
	}

	@Column(name = "uri", length = 200)
	public String getUri() {
		return this.uri;
	}

	public void setUri(String uri) {
		this.uri = uri;
	}

	@Column(name = "isDisplay")
	public Integer getIsDisplay() {
		return this.isDisplay;
	}

	public void setIsDisplay(Integer isDisplay) {
		this.isDisplay = isDisplay;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "createTime", length = 19)
	public Date getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	@Column(name = "creator", length = 20)
	public String getCreator() {
		return this.creator;
	}

	public void setCreator(String creator) {
		this.creator = creator;
	}

	@Column(name = "status")
	public Integer getStatus() {
		return this.status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	@Column(name = "description", length = 500)
	public String getDescription() {
		return this.description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	@Column(name = "imgPath", length=100)
	public String getImgPath() {
		return imgPath;
	}

	public void setImgPath(String imgPath) {
		this.imgPath = imgPath;
	}

	
}